package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.MallPayRecord;
import com.appkubes.mall.core.po.MallPayRecordExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface MallPayRecordMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallPayRecordSqlProvider.class, method="countByExample")
    long countByExample(MallPayRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @DeleteProvider(type=MallPayRecordSqlProvider.class, method="deleteByExample")
    int deleteByExample(MallPayRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @Delete({
        "delete from mall_pay_record",
        "where payrecord_key = #{payrecordKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String payrecordKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @Insert({
        "insert into mall_pay_record (payrecord_key, app_key, ",
        "source_type, source_key, ",
        "pay_money, pay_time, ",
        "callback_time, `no`, ",
        "user_key, create_time, ",
        "memo, update_time, ",
        "openid, uuid, callback_xml)",
        "values (#{payrecordKey,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR}, ",
        "#{sourceType,jdbcType=VARCHAR}, #{sourceKey,jdbcType=VARCHAR}, ",
        "#{payMoney,jdbcType=DECIMAL}, #{payTime,jdbcType=INTEGER}, ",
        "#{callbackTime,jdbcType=INTEGER}, #{no,jdbcType=VARCHAR}, ",
        "#{userKey,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER}, ",
        "#{memo,jdbcType=VARCHAR}, #{updateTime,jdbcType=INTEGER}, ",
        "#{openid,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR}, #{callbackXml,jdbcType=LONGVARCHAR})"
    })
    int insert(MallPayRecord record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @InsertProvider(type=MallPayRecordSqlProvider.class, method="insertSelective")
    int insertSelective(MallPayRecord record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallPayRecordSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="payrecord_key", property="payrecordKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="source_type", property="sourceType", jdbcType=JdbcType.VARCHAR),
        @Result(column="source_key", property="sourceKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_money", property="payMoney", jdbcType=JdbcType.DECIMAL),
        @Result(column="pay_time", property="payTime", jdbcType=JdbcType.INTEGER),
        @Result(column="callback_time", property="callbackTime", jdbcType=JdbcType.INTEGER),
        @Result(column="no", property="no", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="memo", property="memo", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="openid", property="openid", jdbcType=JdbcType.VARCHAR),
        @Result(column="uuid", property="uuid", jdbcType=JdbcType.VARCHAR),
        @Result(column="callback_xml", property="callbackXml", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<MallPayRecord> selectByExampleWithBLOBsWithRowbounds(MallPayRecordExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallPayRecordSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="payrecord_key", property="payrecordKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="source_type", property="sourceType", jdbcType=JdbcType.VARCHAR),
        @Result(column="source_key", property="sourceKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_money", property="payMoney", jdbcType=JdbcType.DECIMAL),
        @Result(column="pay_time", property="payTime", jdbcType=JdbcType.INTEGER),
        @Result(column="callback_time", property="callbackTime", jdbcType=JdbcType.INTEGER),
        @Result(column="no", property="no", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="memo", property="memo", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="openid", property="openid", jdbcType=JdbcType.VARCHAR),
        @Result(column="uuid", property="uuid", jdbcType=JdbcType.VARCHAR),
        @Result(column="callback_xml", property="callbackXml", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<MallPayRecord> selectByExampleWithBLOBs(MallPayRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallPayRecordSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="payrecord_key", property="payrecordKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="source_type", property="sourceType", jdbcType=JdbcType.VARCHAR),
        @Result(column="source_key", property="sourceKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_money", property="payMoney", jdbcType=JdbcType.DECIMAL),
        @Result(column="pay_time", property="payTime", jdbcType=JdbcType.INTEGER),
        @Result(column="callback_time", property="callbackTime", jdbcType=JdbcType.INTEGER),
        @Result(column="no", property="no", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="memo", property="memo", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="openid", property="openid", jdbcType=JdbcType.VARCHAR),
        @Result(column="uuid", property="uuid", jdbcType=JdbcType.VARCHAR)
    })
    List<MallPayRecord> selectByExampleWithRowbounds(MallPayRecordExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallPayRecordSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="payrecord_key", property="payrecordKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="source_type", property="sourceType", jdbcType=JdbcType.VARCHAR),
        @Result(column="source_key", property="sourceKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_money", property="payMoney", jdbcType=JdbcType.DECIMAL),
        @Result(column="pay_time", property="payTime", jdbcType=JdbcType.INTEGER),
        @Result(column="callback_time", property="callbackTime", jdbcType=JdbcType.INTEGER),
        @Result(column="no", property="no", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="memo", property="memo", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="openid", property="openid", jdbcType=JdbcType.VARCHAR),
        @Result(column="uuid", property="uuid", jdbcType=JdbcType.VARCHAR)
    })
    List<MallPayRecord> selectByExample(MallPayRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "payrecord_key, app_key, source_type, source_key, pay_money, pay_time, callback_time, ",
        "`no`, user_key, create_time, memo, update_time, openid, uuid, callback_xml",
        "from mall_pay_record",
        "where payrecord_key = #{payrecordKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="payrecord_key", property="payrecordKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="source_type", property="sourceType", jdbcType=JdbcType.VARCHAR),
        @Result(column="source_key", property="sourceKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_money", property="payMoney", jdbcType=JdbcType.DECIMAL),
        @Result(column="pay_time", property="payTime", jdbcType=JdbcType.INTEGER),
        @Result(column="callback_time", property="callbackTime", jdbcType=JdbcType.INTEGER),
        @Result(column="no", property="no", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="memo", property="memo", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="openid", property="openid", jdbcType=JdbcType.VARCHAR),
        @Result(column="uuid", property="uuid", jdbcType=JdbcType.VARCHAR),
        @Result(column="callback_xml", property="callbackXml", jdbcType=JdbcType.LONGVARCHAR)
    })
    MallPayRecord selectByPrimaryKey(String payrecordKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallPayRecordSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") MallPayRecord record, @Param("example") MallPayRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallPayRecordSqlProvider.class, method="updateByExampleWithBLOBs")
    int updateByExampleWithBLOBs(@Param("record") MallPayRecord record, @Param("example") MallPayRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallPayRecordSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") MallPayRecord record, @Param("example") MallPayRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallPayRecordSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(MallPayRecord record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @Update({
        "update mall_pay_record",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "source_type = #{sourceType,jdbcType=VARCHAR},",
          "source_key = #{sourceKey,jdbcType=VARCHAR},",
          "pay_money = #{payMoney,jdbcType=DECIMAL},",
          "pay_time = #{payTime,jdbcType=INTEGER},",
          "callback_time = #{callbackTime,jdbcType=INTEGER},",
          "`no` = #{no,jdbcType=VARCHAR},",
          "user_key = #{userKey,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=INTEGER},",
          "memo = #{memo,jdbcType=VARCHAR},",
          "update_time = #{updateTime,jdbcType=INTEGER},",
          "openid = #{openid,jdbcType=VARCHAR},",
          "uuid = #{uuid,jdbcType=VARCHAR},",
          "callback_xml = #{callbackXml,jdbcType=LONGVARCHAR}",
        "where payrecord_key = #{payrecordKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKeyWithBLOBs(MallPayRecord record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_pay_record
     *
     * @mbg.generated
     */
    @Update({
        "update mall_pay_record",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "source_type = #{sourceType,jdbcType=VARCHAR},",
          "source_key = #{sourceKey,jdbcType=VARCHAR},",
          "pay_money = #{payMoney,jdbcType=DECIMAL},",
          "pay_time = #{payTime,jdbcType=INTEGER},",
          "callback_time = #{callbackTime,jdbcType=INTEGER},",
          "`no` = #{no,jdbcType=VARCHAR},",
          "user_key = #{userKey,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=INTEGER},",
          "memo = #{memo,jdbcType=VARCHAR},",
          "update_time = #{updateTime,jdbcType=INTEGER},",
          "openid = #{openid,jdbcType=VARCHAR},",
          "uuid = #{uuid,jdbcType=VARCHAR}",
        "where payrecord_key = #{payrecordKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(MallPayRecord record);
}